﻿package create

import (
    "math/rand"
    "fmt"
    "time"
)

func init(){
    fmt.Println("设置随机数种子...")
    rand.Seed(time.Now().Unix())
}

func CreateInt(){
    for i := 0; i < 10; i++{
        fmt.Print(rand.Int(), ", ")
    }
    fmt.Print("\n")
}

func CreateIntn(){
    for i := 0; i < 10; i++{
        fmt.Print(rand.Intn(100), ", ")
    }
    fmt.Print("\n")
}

func CreateFloat32(){
    for i := 0; i < 10; i++{
        fmt.Print(rand.Float32(), ", ")
    }
    fmt.Print("\n")
}
